package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceTreasureBoxCondition 宝箱配置
type DanceTreasureBoxCondition struct {
	Id             int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	TreasureBoxId  int64          `json:"treasureBoxId" gorm:"column:treasure_box_id;type:bigint;default:0;not null;comment:宝箱id"`    // 宝箱id
	TreasureBoxNo  int64          `json:"treasureBoxNo" gorm:"column:treasure_box_no;type:bigint;default:0;not null;comment:宝箱编号"`    // 宝箱编号
	SortNum        int64          `json:"sortNum" gorm:"column:sort_num;type:bigint;default:0;not null;comment:序号"`                   // 序号
	EleId          int64          `json:"eleId" gorm:"column:ele_id;type:bigint;default:0;not null;comment:散件id"`                     // 散件id
	EleNo          int64          `json:"eleNo" gorm:"column:ele_no;type:bigint;default:0;not null;comment:散件no"`                     // 散件no
	EleNumber      int64          `json:"eleNumber" gorm:"column:ele_number;type:bigint;default:0;not null;comment:散件数量"`             // 散件数量
	ValidityPeriod int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:时效(小时)"` // 时效(小时)
	CreatedId      int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`           // 创建人id
	UpdateId       int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`             // 更新人id
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt      gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
